Ext.define("admin.view.basicInfo.deviceMainView", {
    extend: 'Ext.panel.Panel',
    layout: 'border',
    alias: 'widget.basicInfo.deviceMainView',
    items: [{
        region: 'west',
        width: 300,
        border: false,
        title:'连接与分组',
        xtype: 'tabpanel',
        collapsible: true,
        collapsed:true,
        split: true,
        items: [{
            title: '设备组',
            iconCls: 'deviceGroup_16',
            xtype: 'basicInfo.deviceGroupMenuTree',
            store:'deviceGroupMenuTreeStore'
        }, {
            title: '物理线路连接',
            iconCls: 'link_16',
            xtype: 'basicInfo.linkListGridView'
        }]
    }, {
        region: 'center',
        xtype: 'panel',
        layout: 'fit',
        layout: 'border',
        items: [{
            region: 'north',
            xtype: 'panel',
            border: false,
            defaults: {
                margin: '5 5 5 5',
                labelWidth: 70,
                border: false,
                defaultType: 'textfield',
                labelAlign: "center"
            },
            layout: {
                type: 'table',
                columns: 5
            },
            items: [
                {xtype: 'textfield', fieldLabel: '设备编号', name: 'deviceIdentifier'},
                {xtype: 'textfield', fieldLabel: '设备名称', name: 'deviceName'},
                {xtype: 'combobox', fieldLabel: '设备', name: 'deviceStatus'},
                {xtype: 'button', text: '查询', scale: 'medium', iconCls: 'search_24'},
                {xtype: 'button', text: '刷新', scale: 'medium', iconCls: 'refresh_24'}
            ]
        }, {
            region: 'center',
            xtype: 'panel',
            layout: 'fit',
            xtype: 'basicInfo.deviceListGridView'
        }]
    }]
});
